package com.coderman.basketball.infrast.gatawayimpl.member;

import com.coderman.basketball.domain.model.member.bo.PlayerAggregateBO;
import com.coderman.basketball.domain.model.member.bo.PlayerBO;
import com.coderman.basketball.infrast.dao.dataobject.member.PlayerDO;
import com.coderman.basketball.infrast.dao.mapper.member.PlayerMapper;
import com.coderman.basketball.infrast.dao.mapper.trade.ContractDetailMapper;
import com.coderman.basketball.infrast.dao.mapper.trade.ContractMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.io.PrintWriter;

/**
 * Description:
 * date: 2021/6/2
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
@Service
public class PlayerFactory {
    @Resource
    private PlayerMapper playerMapper;
    @Resource
    private ContractDetailMapper contractDetailMapper;

    @Resource
    private ContractMapper contractMapper;


    public PlayerAggregateBO getById(Long playerId){
        PlayerAggregateBO playerAggregateBO = new PlayerAggregateBO();
        PlayerDO playerDO = playerMapper.getById(playerId);

        return playerAggregateBO;
    }

}
